package br.com.vexillum.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="properties_category")
public class PropertiesCategory extends EntityBasic {

	@OneToMany(mappedBy = "category", targetEntity = UserProperties.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Property> userProperties;
	
	@OneToMany(mappedBy = "category", targetEntity = SystemProperties.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL)
	private List<Property> systemProperties;

	public List<Property> getProperties() {
		return userProperties;
	}

	public void setProperties(List<Property> userProperties) {
		this.userProperties = userProperties;
	}

	public List<Property> getSystemProperties() {
		return systemProperties;
	}

	public void setSystemProperties(List<Property> systemProperties) {
		this.systemProperties = systemProperties;
	}
}
